(set #needInst43 "You must use Installer version 43 or greater.")
(set srcdir (pathonly @icon))
(if (< (/ @installer-version 65536) 43)
(abort #needInst43)
)
(complete 10)
(set askfor "\nSelect a Drawer to install Clipper\nNo drawer will be Created.\n\nThis should be in your path for AmIRC usage eg. C:")
(set dst (copyfiles
(source "Clipper")
(dest "C:")
(prompt "Install Clipper to \"C:\" ?")
(help "")
(confirm)
(infos)
)
)
(complete 20)
(copylib
(source "rexxsupport.library")
(dest "libs:")
(prompt "Install rexxsupport.library to \"libs:\" ?")
(help "")
(confirm)
)
(set lang
(askoptions
(prompt "Select Language catalogs to install\nEnglish is Built in.")
(help @askchoice-help)
(choices "Deutsch" "français")
(default 0)
)
)
(set path (pathonly @icon))
(if (or (= lang 1) (= lang 3))
(
(set cata (tackon path "catalogs/deutsch/"))
(copyfiles
(source cata)
(dest "LOCALE:Catalogs/deutsch/")
(all)
)
)
)
(if (or (= lang 2) (= lang 3))
(
(set cata (tackon path "catalogs/français/"))
(copyfiles
(source cata)
(dest "LOCALE:Catalogs/français/")
(all)
)
)
)
(complete 30)
(copylib
(source "awnpipe-handler")
(dest "l:")
(prompt "Install awnpipe-handler to \"l:\" ?")
(help "")
(confirm)
)
(complete 40)
(copyfiles
(source "AWNPIPE")
(dest "Devs:Dosdrivers/")
(prompt "\nInstall AWNP to Devs:DosDrivers ?\n")
(help "")
(confirm)
(infos)
)
(complete 50)
(if (exists "awnpipe:")
(run "assign awnpipe: dismount\nmount awnpipe:")
)
(run "mount awnpipe:")
(complete 60)
(if (askbool
(prompt "\nIf you use AmIRC i can install a Script\nto call Clipper from AmIRCs Menus.\n()_\\\n() /")
(help "Installs a Script called Clipper.amirx into the AmIRC/Rexx drawer. you can then call Clipper from AmIRCs Menus\n\nYou must Click your way to the AmIRC main drawer (not the Rexx dir)")
(prompt "\nI need to know where AmIRC is.\nPlease Select The AmIRC Directory")
(help "Installs a Script called Clipper.amirx into the AmIRC/Rexx drawer. you can then call Clipper from AmIRCs Menus\n\nYou must Click your way to the AmIRC main drawer (not the Rexx dir)")
(default defdest)
)
)
(set adst (tackon amd "Rexx"))
(if (NOT (exists adst))
(abort "could not find "adst"\n\nI need the AmIRC Main Drawer")
(prompt "\nRename S:ClipperIRC.cfg to \"S:ClipPrefs/ClipperIRC.cfg\" ?")
(help "")
(confirm)
)
(copyfiles
(source "ClipperIRC.cfg")
(dest cprefs)
(prompt "Install ClipperIRC.cfg to \"S:ClipPrefs/\" ?")
(help "")
(confirm)
(infos)
)
)
)
)
(copyfiles
(source "Clipper.guide")
(dest "HELP:English/")
(prompt "\nInstall Clipper.guide to HELP:English/ ?\nPress \"Help...\" for info")
(help "\nThis enables the help key to be pressed in a Clipper window to load the Guide relevant to the programs position\n\nThe order Clipper searches for the Guide is..\n 1st: help:English/\n 2nd: help:\nlast: ProgDir:"
"\n\nIf not found in any of these the Help Key will not work.")
(confirm)
(infos)
)
(complete 99)
(set @default-dest (expandpath dst))
(complete 100)
(exit "\n\n" @app-name " Installaton is now over.\n")